<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted() {
    // this.$router.push('/bootPage');
    if(window.location.hash.indexOf('register') != -1){
        return
    }else{
        if(localStorage.getItem('z_token')){
            this.$router.push('/')
        }else{
            this.$router.push('/login')
        }
    }
  },
}
</script>

<style>
body{
    box-sizing: border-box;
    width: 100vw;
    overflow-x: hidden;
  }
  @font-face{
    font-family: axis;
    src:url('../static/font/axis.otf')
  }
  #app {
    font-family: "黑体",Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333;
    font-size: 13px;
    /* padding-bottom: 50px; */
    margin: 0;
    height: 100%;
  }

  #app::-webkit-scrollbar {
    display: none
  }

  html,
  body,
  div,
  span,
  applet,
  object,
  iframe,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  blockquote,
  pre,
  a,
  abbr,
  acronym,
  address,
  big,
  cite,
  code,
  del,
  dfn,
  em,
  font,
  img,
  ins,
  kbd,
  q,
  s,
  samp,
  small,
  strike,
  strong,
  sub,
  sup,
  tt,
  var,
  b,
  u,
  i,
  center,
  dl,
  dt,
  dd,
  ol,
  ul,
  li,
  fieldset,
  form,
  label,
  legend,
  table,
  caption,
  tbody,
  tfoot,
  thead,
  tr,
  th,
  td {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    height: 100%;
    background: #F7FAFD;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }

  article,
  aside,
  canvas,
  details,
  figcaption,
  figure,
  footer,
  header,
  hgroup,
  menu,
  nav,
  section,
  summary {
    display: block;
    box-sizing: border-box;
  }

  ol,
  ul {
    list-style: none;
    list-style-type: none;
  }

  img {
    vertical-align: top;
  }

  a,
  a:link {
    color: #666;
    text-decoration: none;
  }

  a:visited {
    color: #666;
  }

  a:hover {
    color: #666;
  }

  a:active {
    color: #666;
  }

  .fl {
    float: left;
  }

  .fr {
    float: right;
  }

  .clearfix:after {
    content: ".";
    display: block;
    height: 0;
    font-size: 0;
    clear: both;
    visibility: hidden;
  }

  .clearfix {
    zoom: 1;
  }

  /* publick checkbox */
  .cbx {
    padding: 4px 0;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
  }

  .cbx:not(:last-child) {
    margin-right: 6px;
  }

  .cbx:hover {
    background: rgba(125, 100, 247, 0.06);
  }

  .cbx span {
    float: left;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
  }

  .cbx span:first-child {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    transform: scale(1);
    border: 1px solid #c8ccd4;
    transition: all 0.2s ease;
  }

  .cbx span:first-child svg {
    position: absolute;
    top: 1px;
    left: 2px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 12px;
    stroke-dashoffset: 12px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
  }

  .cbx span:nth-child(3) {
    padding-left: 8px;
    line-height: 18px;
    color: #999999;
    line-height: 1.4;
  }

  .cbx:hover span:first-child {
    border-color: #0671FF;
  }

  .inp-cbx:checked+.cbx span:first-child {
    background: #0671FF;
    border-color: #0671FF;
    animation: wave 0.4s ease;
  }

  .inp-cbx:checked+.cbx span:first-child svg {
    stroke-dashoffset: 0;
  }

  .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    user-select: none;
  }


  /* page header */
  .sub-head {
    margin-bottom: 10px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    position: relative;
  }

  /* 
  .sub-head>a {
    position: absolute;
    width: 10px;
    height: 10px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(assets/img/return_top_icon.svg) center no-repeat;
  } */

  .sub-head span {
    position: absolute;
    right: 0;
    font-size: 12px;
    font-weight: 400;
  }


  /* select */
  .c-select select {
    padding: 0 15px;
    width: 100%;
    height: 38px;
    border-radius: 5px;
    /* background: url(assets/img/Stroke_white.svg) no-repeat scroll 96% center transparent; */
    ;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    outline: none
  }

  .inputSty {
    height: 25px;
    width: 100%;
    padding:20px 0px;
    line-height: 25px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0);
    color: #FFF;
  }

  .inputSty::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .imgSty {
    display: inherit;
    width: 17px;
    height: 9px;
    position: relative;
    margin: -26px 0px 15px 93%;
  }

  .btnRegister {
    /* position: absolute;
    bottom: 25px;
    left: 5%; */
    width: 90%;
    margin: 0px auto;
    margin-top: 25px;
    width: 90%;
    height: 40px;
    line-height: 40px;
    background: #0671FF;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    transition: all .3s;
  }

  .authCode {
    color: #0671FF;
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    right: 1px;
    top: 13px;
  }

  /* confirm btn */
  .confirm-btn {
    padding: 0 15px;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    display: flex;
    align-items: center;
  }

  .confirm-btn>a {
    padding: 11px 0;
    display: inline-block;
    flex: 1;
    margin-right: 17px;
    background: #EEEEEE;
    border-radius: 5px;
    text-align: center;
    color: #666666;
    font-size: 14px;
  }

  .confirm-btn>a.confirm {
    margin-right: 0;
    color: #fff;
    background: #C8D1DE;
  }

  .confirm-btn>a.active {
    background: #0671FF !important;
  }

  /* error message */
  .error-msg {
    color: red;
    margin: 5px 0 10px;
    display: inline-block;
  }


  /* 新增 */
  .backDivSty {
    width: 115%;
    height: 10px;
    background-color: rgb(247, 250, 253);
    margin-left: -15px;
  }

  .bottomFixedSty {
    position: fixed;
    bottom: 5px;
    width: 90%;
    margin: 0;
    padding: 0;
    left: 5%;
  }

  .btnBottomSty {
    height: 45px;
    width: 100%;
    background-color: #03A1C6;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    color: #fff;
  }

  .font-z1{
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
  }
  .font-z2{
    font-size: 16px;
    color: #fff;
    font-weight: 500;
  }
  .font-z3{
    font-size: 12px;
    color: #6E59FF;
  }
  .font-z4{
    font-size: 12px;
    color: #fff;
  }
  .font-z5{
    font-size: 24px;
    font-weight: bold;
  }
  .font-36{
    font-size: 36px;
    font-family: axis;
    text-decoration-line: underline;
  }
</style>
